package com.rayframework.boot.proxy;



import com.ray.tool.RayThreadTools;
import com.rayframework.context.RayApplicationContext;

import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Ray 框架代理类
 *
 * @author LiaoYuXing-Ray
 * @version 1.0
 * @createDate 2023/8/31 10:03
 **/
public class RayProxy {

    private static final Logger LOGGER = LoggerFactory.getLogger(RayProxy.class);


    public RayProxy() {

    }


    public void run() {
        Map<String, Object> map = RayApplicationContext.getAllApplicationConfigurationsMap();
        if (map!=null){
            map.forEach((s, o) -> {
                System.out.println(s + "\t" + o);
            });
        }

        new Thread(() -> {
            while (true) {
                System.out.println("测试");
                RayThreadTools.sleepSeconds(10);
            }
        }).start();
    }
}

